package com.aaa.translation.demo;



public class Main {

    // 在平台申请的APP_ID 详见 https://fanyi-api.baidu.com/api/trans/product/desktop?req=developer
    private static final String APP_ID = "20251030002486611";
    private static final String SECURITY_KEY = "E32IXgXzP6VtCYUimisC";

    public static void main(String[] args) {
        TransApi api = new TransApi(APP_ID, SECURITY_KEY);

        String query = "你是谁？";
        String result=api.getTransResult(query, "auto", "en");
/*        String[] split = result.split("\"dst\"");
        String s = split[1].replace(":\"","").replace("\"}]}","");*/
        System.out.println(result);
    }

}
